package com.woniu.dao;

import com.woniu.entity.RbacManager;
import com.woniu.entity.RbacRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author:陈涵
 * @Do:
 * @date: 2022/9/7 6:57
 */
public interface RbacRoleDao {
    List<RbacRole> findAll();

    RbacRole findOne(int id);

    int addOne(RbacRole rbacRole);

    int deleteOne(int id);

    int updateOne(RbacRole rbacRole);

    Set<String> findOneByUserName(String username);

    List<RbacManager> findAllWithPage(@Param("currentPage") Integer currentPage,@Param("pageSize") Integer pageSize);

    int editstatus(@Param("id") Integer id,@Param("status") String status);
}
